<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>查看邮件</title>
<link href="/widget/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"  type="text/css"/>
 {cssjs}
<link href="/res/css/inside_page.css" rel="stylesheet"  type="text/css"/>
<style>
	.school-left .layui-inline{width: 43%;}
	.layui-inline{padding: 0px;}
	.layui-upload-button{width: 182px;}
	.panel{margin-bottom: 0;}
	.layui-table {margin: 0px;background: #F1F1F1;}
	.layui-table td{padding: 3px;}
	.layui-table .tn{width: 80px;}
</style>
</head>
<body>
<div class="container-fluid larry-wrapper">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <section class="panel">
                <table class="layui-table" lay-skin="nob">
                	<tr>
				      <td class="tn">主&nbsp;&nbsp;&nbsp;题：</td>
				      <td>{subject}</td>
				    </tr>
				    <tr>
				      <td class="tn">发件人：</td>
				      <td>{truename}</td>
				    </tr>
				    <tr>
				      <td class="tn">收件人：</td>
				      <td title="{receiver}">{receiver_limit}</td>
				    </tr>
				    <tr>
				      <td class="tn">时&nbsp;&nbsp;&nbsp;间：</td>
				      <td>{timestamp}</td>
				    </tr>
				    <tr>
				      <td class="tn">附&nbsp;&nbsp;&nbsp;件：</td>
				      <td>
				      	<!-- START attachment -->
				      	<a href="https://view.officeapps.live.com/op/view.aspx?src=http://xhsyey.ksedu.cn/UploadFiles/ywgk/2017/5/%e5%85%b3%e4%ba%8e%e7%ab%af%e5%8d%88%e8%8a%82%e6%94%be%e5%81%87%e7%9a%84%e9%80%9a%e7%9f%a5.doc" target="_blank">点我预览</a> 
				      	<a href="/?t=ceshi&url={save_path}" target="_blank" style="color: #6C9EC0;">{name}</a>&nbsp;&nbsp;&nbsp;
				      	<!-- END attachment -->
				      </td>
				    </tr>
				</table>
				<div style="margin-top: 5px;padding: 20px;line-height: 24px;">{content}</div>
				<div style="position: fixed;bottom:0;background: #F1F1F1;width: 100%;padding: 5px;">
					<button class="layui-btn layui-btn-small sj" style="display: none;" data-opt="btn_re" data-id="eid={id}&d=re">回复</button>
					<button class="layui-btn layui-btn-small sj fj" style="display: none;"  data-opt="btn_fw" data-id="eid={id}&d=fw">转发</button>
					<button class="layui-btn layui-btn-small sj fj lj" style="display: none;" data-opt="del"  data-id="{id}">删除</button>
					<button class="layui-btn layui-btn-small lj" style="display: none;" data-opt="renew"  data-id="{id}">恢复</button>
				</div>
				<input type="text" id="emailbox" value="{emailbox}" style="display: none;">
            </section>
        </div>
    </div>
</div>
    {jsmodel}
   <script type="text/javascript">
   	    $("."+"{emailbox}").show();
        layui.use('email_view');
        if("{emailbox}"!='1'){
        	$.post("/srv/sdo.php", {tpl:"email_read",id:"{id}"});
        }
    </script>
</body>
</html>